﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Framework.UI
{
    public class ViewBase<C> : UIBase, IViewBase
        where C : IControllerBase
    {
        private C mControllerBase;

        public virtual void Init()
        {
            mControllerBase = GetComponent<C>();
            OnInit();
        }

        protected virtual void OnInit() { }
    }
}